<?php 
include $_SERVER['DOCUMENT_ROOT'].'/inc/env.inc.php';
$page = new Page ($_POST['label']);
$translate = new Translator();
?>

<h2>Blocks list</h2>
<ul>
<?php 
	foreach ($page->get('blocks') as $i => $bId) {
		$block = new Block ($bId);
		echo '<li>'.$block->get('name').'</li>';
	}
?>
</ul>